import Vue from "vue";
import Router from "vue-router";
// const _import = require("./_import_" + process.env.NODE_ENV);
// in development env not use Lazy Loading,because Lazy Loading too many pages will cause webpack hot update too slow.so only in production use Lazy Loading
Vue.use(Router);
import {
  constantRouterMap,
  asyncRouterMap
}
  from "./baseRouter" // 打包的时候需要更改 cyyRouter gqRouter flhRouter dcRouter router
export {
  asyncRouterMap,
  constantRouterMap
};
export default new Router({
  // mode: "history", // 后端支持可开
  scrollBehavior: () => ({
    y: 0
  }),
  routes: constantRouterMap
});
